package com.xbongbong.pro.enums.datacenter.datawarning.enums;

import com.xbongbong.i18n.util.I18nMessageUtil;
import lombok.Getter;

/**
 * @ClassName DwOperationFlagEnum
 * @Description TODO
 * @Author mengna.Deng
 * @Date 2021/4/21 17:23
 * @Version 1.0
 */
@Getter
public enum DwOperationFlagEnum {
    ADD(0,"enum.DwOperationFlagEnum.attr.add"),
    EDIT(1,"enum.DwOperationFlagEnum.attr.edit"),
    DEL(2,"enum.DwOperationFlagEnum.attr.del")
    ;
    private Integer code;
    private String attr;

    DwOperationFlagEnum(Integer code, String attr) {
        this.code = code;
        this.attr = attr;
    }

    public String getAttr() {
        return I18nMessageUtil.getMessage(attr);
    }
}
